package com.mall.product.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProductDTO {

    @Schema(description = "商品ID")
    private Long id;
    @Schema(description = "商品标题")
    private String title;
    @Schema(description = "商品副标题")
    private String subTitle;
    @Schema(description = "商品分类ID")
    private Long categoryId;
    @Schema(description = "商品价格")
    private BigDecimal price;
    @Schema(description = "商品原价")
    private BigDecimal originalPrice;
    @Schema(description = "商品库存")
    private Integer stock;
    @Schema(description = "商品销量")
    private Integer sellCount;
    @Schema(description = "商品图片URL")
    private String picUrl;
    @Schema(description = "商品详情（富文本）")
    private String content;
    @Schema(description = "商品状态 1:上架, 0:下架")
    private Integer status;
}